package com.think.teaching.utils;

import java.util.function.Predicate;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.TableFieldInfo;
import com.think.teaching.model.BaseModel;

public class QueryWrapperHelper {
	public String docReg = "^(delflag|c|pdf|txt|xls|xlsx)";
	public static <T extends BaseModel<T>> QueryWrapper CreateQueryWrapper(T type){
		QueryWrapper<T> queryWrapper = new QueryWrapper<T>();
		queryWrapper.select(new Predicate<TableFieldInfo>() {
			@Override

			public boolean test(TableFieldInfo t) {
				// TODO Auto-generated method stub
				return t.getColumn()!="" ||t.getColumn()!="";
			}

		});
		return null;
		
	}

}
